PHP Programing language

adplus-dvertising
Write a program Nesting two for loop
Previous Home Next
<html>
<head><title>Nesting Two for Loops</title></head>
<body>
<div>
<?php
    print "<table>";
    for ( $y=1; $y<=10; $y++ ) {
      print "<tr>";
      for ( $x=1; $x<=10; $x++ ) {
        print "<td>";
        print ($x*$y);
        print "</td>";
      }
      print "</tr>";
    }
    print "</table>";
?>
</div>
</body>
</html>

output
Previous Home Next